Skip to content

feat(pluginkit): read a plugin's graphql key from its manifest - #169

Merged
SirLouen merged 2 commits into
mainfrom
feat/168
Nov 21, 2026
Merged

SirLouen merged 2 commits into
mainfrom
feat/168

Conversation

@SirLouen

@SirLouen SirLouen commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Part of #168

What

  • wire.Manifest has a new GraphQL field, read from the graphql key of plugin.json.
  • The strict reader checks graphql like every other key it reads, so GraphQL as a spelling or a string as the value is rejected.
  • graphql no longer sits in Extra. This is a breaking change, listed under Unreleased.
  • The manifest index writes graphql right after frontend and reads it back the same way.

Why

The docs list graphql as a manifest key, but wire kept it in Extra and never checked its spelling or its type. With a typed field, wire rejects a wrong graphql key the same way it rejects every other wrong key. A later change can then move graphwire onto wire.Read.

Testing Instructions

The repository's own gates cover this.

Summary by CodeRabbit

  • New Features
    • Manifest data now supports the graphql flag as a dedicated field, including validation and JSON round-tripping.
  • Breaking Changes
    • The graphql key is no longer retained in extra manifest fields. Update any integrations that read it from there.

@greptile-apps

This comment has been minimized.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The manifest now reads graphql into the typed GraphQL field instead of retaining it in Extra. Tests cover parsing, serialization, key spelling, optional values, and invalid value types. The changelog records this as a breaking change.

Changes: Manifest GraphQL field

Layer / File(s) Summary
Typed field and manifest behavior
pluginkit/wire/manifest.go, pluginkit/wire/manifest_*_test.go, pluginkit/CHANGELOG.md
Manifest adds the optional GraphQL field and recognizes graphql as a typed key. Tests cover loading and marshaling, wrong-case keys, null and wrong-type values, and preservation of other keys in Extra. The changelog records the change as breaking.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related issues

  • gopherium/framework#168 — This PR implements the issue’s typed GraphQL field and removal of graphql from Extra. The graphwire migration to wire.Read remains outside this PR.

Possibly related PRs

Suggested reviewers: codescene-access

Merge Risk: Minimal · up to 74d9b

The typed GraphQL field and documented breaking change appear ready to merge after normal checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(pluginkit): read a plugin's graphql key from its manifest" matches the main change. The PR adds a typed GraphQL field to wire.Manifest, read from the graphql key in plugin.json, and re…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(pluginkit): read a plugin's graphql key from its manifest" matches the main change. The PR adds a typed GraphQL field to wire.Manifest, read from the graphql key in plugin.json, and removes graphql from Extra. The title is specific and concise, and it names the scope (pluginkit). It does not mention the breaking change, but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3261f162-90d5-4aab-bdf7-6eae1b5048e1
Commits

Reviewing files that changed from the base of the PR and between fb63afb and 74d9bda.

Files selected for processing: 6

  • pluginkit/CHANGELOG.md
  • pluginkit/wire/manifest.go
  • pluginkit/wire/manifest_identity_test.go
  • pluginkit/wire/manifest_index_test.go
  • pluginkit/wire/manifest_keys_test.go
  • pluginkit/wire/manifest_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Adds wire.Manifest.GraphQL for the graphql key in plugin.json.

  • Plugin manifests now expose graphql as a checked boolean.

SirLouen explicitly acknowledged removal of graphql from Extra as an intentional breaking change. The changelog records it.

Reviews (1) · Last reviewed commit: "docs(pluginkit): list the graphql manife..." · Reviewed by Greptile

@SirLouen
SirLouen merged commit 91b488a into main Nov 21, 2026
51 checks passed
@SirLouen
SirLouen deleted the feat/168 branch November 21, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant